Optimal. Leaf size=56 \[ \frac {25 x^3}{6}+\frac {85 x^2}{8}-\frac {363}{32} \log \left (2 x^2-x+3\right )+\frac {51 x}{8}+\frac {847 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{16 \sqrt {23}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1657, 634, 618, 204, 628} \[ \frac {25 x^3}{6}+\frac {85 x^2}{8}-\frac {363}{32} \log \left (2 x^2-x+3\right )+\frac {51 x}{8}+\frac {847 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{16 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rubi steps
\begin {align*} \int \frac {\left (2+3 x+5 x^2\right )^2}{3-x+2 x^2} \, dx &=\int \left (\frac {51}{8}+\frac {85 x}{4}+\frac {25 x^2}{2}-\frac {121 (1+3 x)}{8 \left (3-x+2 x^2\right )}\right ) \, dx\\ &=\frac {51 x}{8}+\frac {85 x^2}{8}+\frac {25 x^3}{6}-\frac {121}{8} \int \frac {1+3 x}{3-x+2 x^2} \, dx\\ &=\frac {51 x}{8}+\frac {85 x^2}{8}+\frac {25 x^3}{6}-\frac {363}{32} \int \frac {-1+4 x}{3-x+2 x^2} \, dx-\frac {847}{32} \int \frac {1}{3-x+2 x^2} \, dx\\ &=\frac {51 x}{8}+\frac {85 x^2}{8}+\frac {25 x^3}{6}-\frac {363}{32} \log \left (3-x+2 x^2\right )+\frac {847}{16} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )\\ &=\frac {51 x}{8}+\frac {85 x^2}{8}+\frac {25 x^3}{6}+\frac {847 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{16 \sqrt {23}}-\frac {363}{32} \log \left (3-x+2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 52, normalized size = 0.93 \[ \frac {1}{24} x \left (100 x^2+255 x+153\right )-\frac {363}{32} \log \left (2 x^2-x+3\right )-\frac {847 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{16 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.85, size = 43, normalized size = 0.77 \[ \frac {25}{6} \, x^{3} + \frac {85}{8} \, x^{2} - \frac {847}{368} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {51}{8} \, x - \frac {363}{32} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 43, normalized size = 0.77 \[ \frac {25}{6} \, x^{3} + \frac {85}{8} \, x^{2} - \frac {847}{368} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {51}{8} \, x - \frac {363}{32} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 44, normalized size = 0.79 \[ \frac {25 x^{3}}{6}+\frac {85 x^{2}}{8}+\frac {51 x}{8}-\frac {847 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{368}-\frac {363 \ln \left (2 x^{2}-x +3\right )}{32} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 43, normalized size = 0.77 \[ \frac {25}{6} \, x^{3} + \frac {85}{8} \, x^{2} - \frac {847}{368} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {51}{8} \, x - \frac {363}{32} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.44, size = 45, normalized size = 0.80 \[ \frac {51\,x}{8}-\frac {363\,\ln \left (2\,x^2-x+3\right )}{32}-\frac {847\,\sqrt {23}\,\mathrm {atan}\left (\frac {4\,\sqrt {23}\,x}{23}-\frac {\sqrt {23}}{23}\right )}{368}+\frac {85\,x^2}{8}+\frac {25\,x^3}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 60, normalized size = 1.07 \[ \frac {25 x^{3}}{6} + \frac {85 x^{2}}{8} + \frac {51 x}{8} - \frac {363 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{32} - \frac {847 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{368} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________